package com.qcl.bean;

import lombok.Data;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import java.util.Date;

/**
 * 小程序排号对应的数据表bean
 * 编程小石头：2501902696（微信）
 */
@Entity
@EntityListeners(AuditingEntityListener.class)
@Data
public class Paihao {

    @Id
    @GeneratedValue
    private Integer id;
    private Integer num;
    private Integer type;//0小桌，1大桌
    private String openid;//用户的唯一标识
    private boolean ruzhuo;//是否入座
    private String day;//代表那一天


    @CreatedDate//自动添加创建时间的注解
    private Date createTime;
    @LastModifiedDate//自动添加更新时间的注解
    private Date updateTime;
}
